/*
 * @Author: your name
 * @Date: 2021-04-14 14:22:21
 * @LastEditTime: 2021-04-14 16:22:18
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /flutter_demo/lib/pages/users/RegisterThrid.dart
 */
import 'package:flutter/material.dart';

import '../Tabs.dart';

class RegisterThridPage extends StatefulWidget {
  @override
  _RegisterThridPageState createState() => _RegisterThridPageState();
}

class _RegisterThridPageState extends State<RegisterThridPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('第三步'),
        ),
        body: Column(
          children: <Widget>[
            SizedBox(height: 40),
            ElevatedButton(
                onPressed: () {
                  Navigator.of(context).pushAndRemoveUntil(
                      MaterialPageRoute(
                          builder: (context) => TabPage(index: 1)),
                      (route) => route == null);
                  // Navigator.of(context).pop();
                },
                child: Text('完成注册'))
          ],
        ));
  }
}
